package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 权限实体类
 */
@Data
@ApiModel(value = "权限实体")
@TableName("t_grade")
public class GradeBean {
    /**权限id*/
    @TableId(value = "pk_gradeId", type = IdType.AUTO)
    private Integer gradeId;
    /**权限名称*/
    @ApiModelProperty(value = "权限名称")
    @TableField("g_name")
    private String gradeName;
    /**授权*/
    @TableField("g_context")
    private String context;
    public GradeBean() {
    }

    public GradeBean(Integer gradeId, String gradeName) {
        this.gradeId = gradeId;
        this.gradeName = gradeName;
    }

    public Integer getGradeId() {
        return gradeId;
    }

    public void setGradeId(Integer gradeId) {
        this.gradeId = gradeId;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    @Override
    public String toString() {
        return "GradeBean{" +
                "gradeId=" + gradeId +
                ", gradeName='" + gradeName + '\'' +
                "}\n";
    }
}
